package com.sc.nft.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.SecondCollectionConfig;
import com.sc.nft.entity.dto.SecondaryMarketSearchDTO;
import com.sc.nft.entity.vo.CollectionSimpleVO;
import com.sc.nft.entity.vo.SecondaryMarketSearchVO;
import com.sc.nft.enums.MarketTypeEnum;

/**
 * 二级藏品配置表服务接口
 *
 * @author kancy
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2022-10-03 16:53:14
 */
public interface SecondCollectionConfigService {

    void priceUp();

    /**
     * 自由市场参考上下限价格
     */
    void freeMarketReference();

    /**
     * 获取自由市场藏品列表
     */
    Page<CollectionSimpleVO> getPageSecondaryMarketCollection(Integer pageNo, Integer pageSize);

    /**
     * 市场搜索
     * @param request
     * @return
     */
    IPage<SecondaryMarketSearchVO> marketSearch(SecondaryMarketSearchDTO request);


    /**
     * 查询当前配置项对应数据
     */

    SecondCollectionConfig getByCollectionAndType(Long collectionId, MarketTypeEnum marketType);

    /**
     * 共识区自动涨价
     */
    void consensusUpPrice(SecondCollectionConfig secondCollectionConfig);

    /**
     * 共识区自动降价
     */
    void consensusDownPrice(SecondCollectionConfig secondCollectionConfig);



}
